﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SlimDX;

namespace LibSnesDotNet.Core
{
	public class AudioUpdatedEventArgs : EventArgs
	{
		DataStream _audioBuffer;
		int _sampleCount;

		public AudioUpdatedEventArgs(DataStream audioBuffer, int sampleCount)
		{
			_audioBuffer = audioBuffer;
			_sampleCount = sampleCount;
		}

		public DataStream AudioBuffer { get { return _audioBuffer; } }
		public int SampleCount { get { return _sampleCount; } }
	}

	public class VideoUpdatedEventArgs : EventArgs
	{
		DataStream _videoBuffer;
		int _width;
		int _height;

		public VideoUpdatedEventArgs(DataStream videoBuffer, int width, int height)
		{
			_videoBuffer = videoBuffer;
			_width = width;
			_height = height;
		}

		public DataStream VideoBuffer { get { return _videoBuffer; } }
		public int Width { get { return _width; } }
		public int Height { get { return _height; } }
	}

	public delegate void AudioUpdatedEventHandler(object sender, AudioUpdatedEventArgs e);
	public delegate void VideoUpdatedEventHandler(object sender, VideoUpdatedEventArgs e);
}
